For N4 to validate a gate appointment for hazards, you must first
Add the RejectTranNotMatchingHazardBooking (on page 1) gate business task at the appointment stage for the Receive Export (RE) transaction type.
Include the Hazardous (on page 1) field in the the Appt Tran Type (on page 1) form at the Appointment Stage in your gate configuration and mark it as ‘Required’.
To create an appointment for hazards using the Add Appointment (on page 1) form in N4:
Enter the hazardous booking number and the container number in the Add Appointment (on page 1) form.
Check the Hazardous check box to indicate that the container is hazardous.
Enter any other fields that are required and click Save.
N4 creates the appointment successfully.
If you do not check the Hazardous check box, N4 validates the appointment based on RejectTranNotMatchingHazardBooking (on page 1) and displays an error message.
To create an appointment for hazards using the create-appointment API,
Add the ‘is-hazard’ attribute to the create-appointment API as in the image below.
If the container is hazardous, set the ‘is-hazard’ attribute to ‘true’.
Post the API with the hazardous booking number and the container number.
N4 creates the appointment and updates the Hazardous field as 'Yes' in the Appointment form (on page 1).
If you set the ‘is-hazard’ attribute to 'false' and post the API with the hazardous booking and container details, the webservice responds with the error message "Booking xyz is a hazardous booking and no hazard details have been entered".
N4 does not validate the appointment if -
You do not configure the Hazardous field in the Appt Tran Type form (on page 1)
You do not include the ‘is-hazard’ attribute in the API